package com.shyroke.mapper;

import org.apache.ibatis.annotations.Param;

import com.shyroke.entity.UserInfo;

public interface UserInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKey(UserInfo record);

    /**
     * 检验是否存在该邮箱，存在则返回该用户的id
     * @param email
     * @return
     */
	String isExitEmail(@Param("email")String email);

	UserInfo selectByUserId(@Param("userId")Integer id);
}